/**
 * 纯代扣签约
 */
const signContract = (extraData, successCallBack, errCallBack) => {

	if (typeof(extraData) == "string") {
		extraData = JSON.parse(extraData)
	}
	
	uni.navigateToMiniProgram({
		appId: 'wxbd687630cd02ce1d',
		extraData,
		success(res) {
			// 打开成功
			if (successCallBack) {
				successCallBack(res)
			}
		},
		fail(res) {
			if (errCallBack) {
				errCallBack(res)
			}
		}
	})

}

export default {
	signContract,
}